import request from '@/utils/request'

// 查询采购退货详情列表
export function listRefundDetails(query) {
  return request({
    url: '/purchasing/refundDetails/list',
    method: 'get',
    params: query
  })
}

// 查询采购退货详情详细
export function getRefundDetails(refundDetailsId) {
  return request({
    url: '/purchasing/refundDetails/' + refundDetailsId,
    method: 'get'
  })
}

// 新增采购退货详情
export function addRefundDetails(data) {
  return request({
    url: '/purchasing/refundDetails',
    method: 'post',
    data: data
  })
}

// 修改采购退货详情
export function updateRefundDetails(data) {
  return request({
    url: '/purchasing/refundDetails',
    method: 'put',
    data: data
  })
}

// 删除采购退货详情
export function delRefundDetails(refundDetailsId) {
  return request({
    url: '/purchasing/refundDetails/' + refundDetailsId,
    method: 'delete'
  })
}
